﻿using RG.Common.Provider;
using Microsoft.Practices.Unity;
using RealtorGuide.DAO;

namespace RG.DAO
{
    public static class IUnityContainer_RGExtrension
    {
        public static IUnityContainer RG_DAO(this IUnityContainer cfg)
        {
            cfg
                .RegisterType<IDAOProvider, RGProvider>("RG")
                .RegisterType<IManagerDAO, ManagerDAO>()
                .RegisterType<IApartmentDAO, ApartmentDAO>()
                .RegisterType<IMicroAreaDAO, MicroAreaDAO>()
                ;

            return cfg;
        }
    }
}
